<template>
  <div>
    <skeleton v-if="isLoading" />
    <div v-else>
      <!-- 实际内容 -->
    </div>
  </div>
</template>

<script>
import Skeleton from './components/HelloWorld.vue'

export default {
  components: { Skeleton },
  data() {
    return {
      isLoading: true
    };
  },
  async created() {
    // await this.fetchData();
    // this.isLoading = false;
  },
  methods: {
    async fetchData() {
      // 模拟数据加载
      return new Promise(resolve => setTimeout(resolve, 3000));
    }
  }
};
</script>
